package com.panda.takeaway.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Basket extends BaseEntity{

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private Long userId;
    @TableField("food_id")
    private Long foodId;
    @TableField("total_price")
    private Integer totalPrice;
    @TableField("num")
    private byte num;
    @TableField("order_id")
    private Long orderId;

}
